

export default({
    getcookie(key) {
        var strcookie = document.cookie; //获取cookie字符串
        var arrcookie = strcookie.split("; ");
        for (var i = 0; i < arrcookie.length; i++) {
            var arr = arrcookie[i].split("=");
            if (arr[0] == key) {
                return arr[1];
            }
        }
    }
})